package impl;

public class OperationDiv extends Operation {
    public double getResult() {
        if (numberB == 0) {
            throw new ArithmeticException("除数不能为0");
        }
        return numberA / numberB;
    }
}
